Focus

data class Focus @JvmOverloads constructor(    val nodes: List<MPINavigatable.MPINode>? = null,     val polygons: List<MPINavigatable.MPIPolygon>? = null,     val duration: Double? = null,     val changeZoom: Boolean? = null,     val minZoom: Double? = null,     val tilt: Double? = null,     val padding: MPIOptions.FocusPadding? = null,     val focusZoomFactor: Double? = null)

Focus holds the properties of values to be set when focus on is called

Constructors

Link copied to clipboard
fun Focus(    nodes: List<MPINavigatable.MPINode>? = null,     polygons: List<MPINavigatable.MPIPolygon>? = null,     duration: Double? = null,     changeZoom: Boolean? = null,     minZoom: Double? = null,     tilt: Double? = null,     padding: MPIOptions.FocusPadding? = null,     focusZoomFactor: Double? = null)

Properties

Link copied to clipboard
val changeZoom: Boolean? = null

Whether it should change zoom

Link copied to clipboard
val duration: Double? = null

Duration of focus on

Link copied to clipboard
val focusZoomFactor: Double? = null

Set the factor of the focus zoom

Link copied to clipboard
val minZoom: Double? = null

Set the minimum zoom level

Link copied to clipboard
val nodes: List<MPINavigatable.MPINode>? = null
Link copied to clipboard
val padding: MPIOptions.FocusPadding? = null

Set the focus on padding for top, bottom, left, right

Link copied to clipboard
val polygons: List<MPINavigatable.MPIPolygon>? = null
Link copied to clipboard
val tilt: Double? = null

Set the tilt